package View;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JComboBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ViewPublicacao extends JFrame {

	private JPanel contentPane;
	private JTextField txtTitulo;
	private JTextField txtAutor;
	private JTextField txtEditora;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField txtAno;
	private JTextField textField_3;

	/**
	 * Launch the application.
	 */
	public static void iniciar() {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ViewPublicacao frame = new ViewPublicacao();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ViewPublicacao() {
		
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Titulo");
		lblNewLabel.setBounds(26, 56, 46, 14);
		contentPane.add(lblNewLabel);
		
		txtTitulo = new JTextField();
		txtTitulo.setBounds(86, 53, 86, 20);
		contentPane.add(txtTitulo);
		txtTitulo.setColumns(10);
		
		JLabel lblAutor = new JLabel("Autor");
		lblAutor.setBounds(221, 21, 46, 14);
		contentPane.add(lblAutor);
		
		txtAutor = new JTextField();
		txtAutor.setBounds(265, 18, 86, 20);
		contentPane.add(txtAutor);
		txtAutor.setColumns(10);
		
		JLabel lblEditora = new JLabel("Editora");
		lblEditora.setBounds(26, 106, 46, 14);
		contentPane.add(lblEditora);
		
		txtEditora = new JTextField();
		txtEditora.setBounds(86, 103, 86, 20);
		contentPane.add(txtEditora);
		txtEditora.setColumns(10);
		
		JLabel lblIsbn = new JLabel("ISBN");
		lblIsbn.setBounds(221, 71, 46, 14);
		contentPane.add(lblIsbn);
		
		textField = new JTextField();
		textField.setBounds(265, 68, 86, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblNumerosDePaginas = new JLabel("N\u00BAPag.");
		lblNumerosDePaginas.setBounds(26, 153, 46, 14);
		contentPane.add(lblNumerosDePaginas);
		
		textField_1 = new JTextField();
		textField_1.setBounds(86, 150, 86, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNedicao = new JLabel("N\u00BAEdicao");
		lblNedicao.setBounds(221, 118, 46, 14);
		contentPane.add(lblNedicao);
		
		textField_2 = new JTextField();
		textField_2.setBounds(277, 115, 86, 20);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		JButton btnAdicionar = new JButton("Adicionar");
		btnAdicionar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnAdicionar.setBounds(10, 228, 89, 23);
		contentPane.add(btnAdicionar);
		
		JButton btnPesquisar = new JButton("Pesquisar");
		btnPesquisar.setBounds(111, 228, 89, 23);
		contentPane.add(btnPesquisar);
		
		JButton btnAlterar = new JButton("Alterar");
		btnAlterar.setBounds(221, 228, 89, 23);
		contentPane.add(btnAlterar);
		
		JButton btnNewButton_3 = new JButton("Excluir");
		btnNewButton_3.setBounds(335, 228, 89, 23);
		contentPane.add(btnNewButton_3);
		
		JLabel lblNewLabel_1 = new JLabel("ano");
		lblNewLabel_1.setBounds(26, 200, 46, 14);
		contentPane.add(lblNewLabel_1);
		
		txtAno = new JTextField();
		txtAno.setBounds(86, 197, 86, 20);
		contentPane.add(txtAno);
		txtAno.setColumns(10);
		
		JLabel lblCategoria = new JLabel("Categoria");
		lblCategoria.setBounds(221, 165, 57, 14);
		contentPane.add(lblCategoria);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(277, 162, 147, 20);
		contentPane.add(comboBox);
		
		JLabel lblCodigo = new JLabel("Codigo");
		lblCodigo.setBounds(26, 21, 46, 14);
		contentPane.add(lblCodigo);
		
		textField_3 = new JTextField();
		textField_3.setBounds(86, 18, 86, 20);
		contentPane.add(textField_3);
		textField_3.setColumns(10);
	}
}
